package com.jyxd.web.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.PascalNameFilter;

import java.util.Map;

/**
 * json字符串小写转大写的转换
 */
public class ToJSONUtils {

        public static void main(String[] args) {

            //String str = "{\"request\":{\"body\":{\"demography\":{\"birthday\":\"1973-12-19 00:00:00\",\"cardList\":[{\"cardClass\":{\"identifier\":\"\",\"text\":\"\"},\"cardNo\":\"1108242\",\"cardType\":{\"identifier\":\"\",\"text\":\"\"},\"majorIndicator\":{\"identifier\":\"\",\"text\":\"\"}}],\"career\":{\"identifier\":\"11894\",\"text\":\"农民\"},\"certificateList\":[{\"cardClass\":{\"identifier\":\"\",\"text\":''},\"cardNo\":\"140425197312190010\",\"cardType\":\"身份证\"}],\"culture\":{\"identifier\":\"\",\"text\":\"\"},\"ethnicGroup\":{\"identifier\":\"1\",\"text\":\"汉族\"},\"localIndicator\":{\"identifier\":\"\",\"text\":\"\"},\"maritalStatus\":{\"identifier\":\"1\",\"text\":\"未婚      \"},\"nationality\":{\"identifier\":\"1\",\"text\":\"中国\"},\"patientAddress\":[{\"city\":{\"identifier\":\"\",\"text\":\"\"},\"companyName\":\"\",\"country\":{\"identifier\":\"\",\"text\":\"\"},\"houseNumber\":\"\",\"province\":{\"identifier\":\"\",\"text\":\"\"},\"streetAddress\":\"\",\"town\":{\"identifier\":\"\",\"text\":\"\"},\"type\":\"H\",\"zip\":\"\"}],\"patientIdentifierList\":[{\"idNumber\":\"1108242\",\"idType\":\"PatientID\"}],\"patientName\":\"王成斌\",\"phoneList\":[{\"phoneType\":\"H\"}],\"psychosisIndicator\":{\"identifier\":\"\",\"text\":\"\"},\"sex\":{\"identifier\":\"M\",\"text\":\"男性\"},\"ssn\":\"140425197312190010\"},\"diagnosisList\":[{\"diagnosisClass\":{\"identifier\":\"入院诊断\",\"text\":\"入院诊断\"},\"diagnosisCode\":{\"identifier\":\"\"},\"diagnosisDoc\":{\"idNumber\":\"0731\",\"name\":\"秦慧慧\"},\"diagnosisTime\":1646377790000,\"diagnosisType\":{\"identifier\":\"1\",\"text\":\"主要诊断\"},\"herbalistDiagnosisCode\":{\"identifier\":\"\",\"text\":\"\"}}],\"event\":{\"eventCode\":{\"identifier\":\"PVM0501\"},\"eventFacility\":{\"identifier\":\"1001\"},\"operator\":{\"department\":{\"identifier\":\"\"},\"name\":\"\"},\"recordDatetime\":1646377790000},\"extOfKinList\":[{\"addressList\":[{\"city\":{\"identifier\":\"\",\"text\":\"\"},\"companyName\":\"\",\"county\":{\"identifier\":\"\",\"text\":\"\"},\"houseNumber\":\"\",\"province\":{\"identifier\":\"\",\"text\":\"\"},\"streetAddress\":\"\",\"town\":{\"identifier\":\"\",\"text\":\"\"},\"type\":\"H\",\"zip\":\"\"}],\"name\":\"王成斌\",\"phoneList\":[{\"phoneNumberST\":\"\",\"phoneType\":\"H\"}],\"relationship\":{\"identifier\":\"8\",\"text\":\"\"},\"sex\":{\"identifier\":\"\",\"text\":\"\"},\"ssn\":\"\"}],\"patientVisit\":{\"babyVisitNumber\":\"\",\"criticalLevel\":{\"identifier\":\"\",\"text\":\"\"},\"dischargeWay\":{\"identifier\":\"\",\"text\":\"\"},\"handleList\":[{\"department\":{\"text\":\"康复科\"},\"handleBy\":{\"iDNumber\":\"0731\",\"name\":\"秦慧慧\",\"role\":{\"identifier\":\"ResidentDoctor\",\"text\":\"住院医师\"}},\"handleTime\":\"2022-03-04 15:09:26\",\"type\":{\"identifier\":\"Action\",\"text\":\"执行\"},\"ward\":{\"identifier\":\"32\",\"text\":\"康复科护理站\"}}],\"patientClass\":\"I\",\"patientLocation\":{\"bed\":\"01\",\"department\":{\"identifier\":\"014\",\"text\":\"康复科\"},\"room\":\"2抢\",\"ward\":{\"identifier\":\"32\",\"text\":\"康复科护理站\"}},\"visitCount\":3,\"visitNumber\":\"14900256\",\"visitStatus\":{\"identifier\":\"0\",\"text\":\"入院登记\"}}},\"head\":{\"appId\":\"HIS\",\"appType\":\"\",\"callback\":\"\",\"contentEncoding\":\"\",\"contentType\":\"Sync\",\"licId\":\"\",\"messageId\":\"219d949d-e1d7-49b3-8e7a-38d4e3afb67d\",\"orgId\":\"1001\",\"recAppId\":\"PACS\",\"securityContent\":\"\",\"securityPolicy\":\"\",\"timestamp\":\"null\",\"tranCode\":\"\",\"version\":\"1.1\"}}}";
            //String str ="{\"request\":{\"body\":{\"demography\":{\"birthday\":\"1938-11-13 00:00:00\",\"maritalStatus\":{\"identifier\":\"2\",\"text\":\"已婚\"},\"patientIdentifierList\":[{\"idNumber\":\"15194402\",\"idType\":\"PatientID\",\"idTypeScope\":\"\"},{\"idNumber\":\"1083502\",\"idType\":\"MedicalRecordNo\",\"idTypeScope\":\"\"},{\"idNumber\":\"1083502\",\"idType\":\"CardNo\",\"idTypeScope\":\"\"}],\"patientName\":\"李旭华\",\"sex\":{\"identifier\":\"F\",\"text\":\"女性\"},\"ssn\":\"140402193811130466\"},\"diagnosisList\":[{\"diagnosisClass\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosisCode\":{\"identifier\":\"N18.001\",\"text\":\"慢性肾脏病V期\"},\"diagnosisDoc\":{\"idNumber\":\"0465\",\"name\":\"朱振华\"},\"diagnosisTime\":\"2022-07-30 21:42:21\",\"diagnosisType\":{\"identifier\":\"\",\"text\":\"\"},\"herbalistDiagnosisCode\":{\"identifier\":\"\",\"text\":\"\"}}],\"event\":{\"eventCode\":{\"identifier\":\"ORD0201\"},\"eventFacility\":{\"identifier\":\"\",\"text\":\"长治医学院附属和平医院\"},\"operator\":{\"department\":{\"identifier\":\"\"},\"iDNumber\":\"\",\"name\":\"ESB\"},\"recordDatetime\":1659188541000},\"orderGroupList\":[{\"commonOrder\":{\"orderControl\":\"\",\"orderIdList\":[{\"idNumber\":\"107658001\",\"idType\":\"CISOrderDetailNo\"}]},\"orderDetailGroupList\":[{\"orderDetail\":{\"commentList\":[{\"type\":{\"identifier\":\"Comment\",\"text\":\"备注\"}}],\"contentOfDoctorsAdvice\":\"死亡离院\",\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"fillerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"groupNumber\":\"107658001\",\"groupSeqNumber\":\"\",\"handleList\":[{\"handleBy\":{\"iDNumber\":\"1011\",\"name\":\"许东东\",\"role\":{\"identifier\":\"\",\"text\":\"责任护士\"}},\"handleTime\":\"2022-07-30 21:40:35\",\"type\":{\"identifier\":\"Entry\",\"text\":\"录入\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"校验人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Verify\",\"text\":\"效验\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"执行人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Action\",\"text\":\"执行\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"拒签人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Refuse\",\"text\":\"拒绝\"}}],\"orderClass\":{},\"orderDetailIdList\":[{\"iDNumber\":\"107658001\",\"iDType\":\"CISOrderDetailNo\"},{\"iDNumber\":\"107658001\",\"iDType\":\"HISOrderDetailNo\"}],\"orderStatus\":\"1\",\"orderType\":\"0\",\"placerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"priority\":\"\",\"quantityTiming\":{\"duration\":\"\",\"interval\":{\"repeatPattern\":{\"identifier\":\"1\",\"text\":\"一日一次\"}},\"quantity\":\"\",\"startDT\":1659188474000,\"totalExecutiveFrequency\":\"\",\"totalQuantity\":\"0.0\",\"units\":\"\"},\"scheduleExecuteDatetime\":1659188474000,\"serviceInfo\":{\"itemInfo\":{\"identifier\":\"908647\"},\"specification\":\"0.0\"}},\"pharmacyDetail\":{\"chargeGroupList\":[{\"chargeList\":[{\"chargeInfo\":{\"chargeCode\":\"false\",\"price\":0,\"totalQuantity\":0},\"serviceInfo\":{\"itemInfo\":{},\"unit\":\"\"}}],\"insurance\":{}}],\"pharmacyOrder\":{\"pharmacy\":{\"coefficientList\":{\"type\":{\"identifier\":\"\",\"text\":\"\"},\"unit\":\"\",\"value\":\"\"},\"dosageForm\":{},\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"pap\":{\"classValue\":{},\"credentialNumber\":\"\",\"credentialType\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosis\":{\"identifier\":\"\",\"text\":\"\"}}}},\"treatmentRoute\":{\"administrationMethod\":{\"identifier\":\"0\",\"text\":\"\"}}}}]}],\"patientVisit\":{\"babyVisitNumber\":\"\",\"patientClass\":\"I\",\"patientLocation\":{\"bed\":\"139052\",\"department\":{\"identifier\":\"068\",\"text\":\"重症医学科\"},\"room\":\"101717\",\"ward\":{\"identifier\":\"196745\",\"text\":\"重症医学科护理站\"}},\"visitCount\":7,\"visitNumber\":\"15194402\"}},\"head\":{\"appId\":\"null\",\"appType\":\"\",\"callback\":\"\",\"contentEncoding\":\"\",\"contentType\":\"\",\"licId\":\"\",\"messageId\":\"FF4C6632-18CE-48AC-98A4-413193B5CEC4\",\"orgId\":\"1001\",\"recAppId\":\"null\",\"securityContent\":\"\",\"securityPolicy\":\"\",\"timestamp\":\"20220730214221\",\"tranCode\":\"\",\"version\":\"\"}}}";
            //String str="{\"request\":{\"body\":{\"demography\":{\"birthday\":\"1968-08-22 00:00:00\",\"maritalStatus\":{\"identifier\":\"1\",\"text\":\"未婚      \"},\"patientIdentifierList\":[{\"idNumber\":\"15471270\",\"idType\":\"PatientID\",\"idTypeScope\":\"\"},{\"idNumber\":\"1146539\",\"idType\":\"MedicalRecordNo\",\"idTypeScope\":\"\"},{\"idNumber\":\"1146539\",\"idType\":\"CardNo\",\"idTypeScope\":\"\"}],\"patientName\":\"王海港\",\"sex\":{\"identifier\":\"M\",\"text\":\"男性\"},\"ssn\":\"140427196808224411\"},\"diagnosisList\":[{\"diagnosisClass\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosisCode\":{\"identifier\":\"-\",\"text\":\"脑出血\"},\"diagnosisDoc\":{\"idNumber\":\"0821\",\"name\":\"李远征\"},\"diagnosisTime\":\"2022-08-01 22:08:21\",\"diagnosisType\":{\"identifier\":\"\",\"text\":\"\"},\"herbalistDiagnosisCode\":{\"identifier\":\"\",\"text\":\"\"}}],\"event\":{\"eventCode\":{\"identifier\":\"ORD0201\"},\"eventFacility\":{\"identifier\":\"\",\"text\":\"长治医学院附属和平医院\"},\"operator\":{\"department\":{\"identifier\":\"\"},\"iDNumber\":\"\",\"name\":\"ESB\"},\"recordDatetime\":1659362900000},\"orderGroupList\":[{\"commonOrder\":{\"orderControl\":\"\",\"orderIdList\":[{\"idNumber\":\"107785803\",\"idType\":\"CISOrderDetailNo\"}]},\"orderDetailGroupList\":[{\"orderDetail\":{\"commentList\":[{\"type\":{\"identifier\":\"Comment\",\"text\":\"备注\"}}],\"contentOfDoctorsAdvice\":\"重症医学科一般护理常规\",\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"fillerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"groupNumber\":\"107785803\",\"groupSeqNumber\":\"\",\"handleList\":[{\"handleBy\":{\"iDNumber\":\"697\",\"name\":\"李远征\",\"role\":{\"identifier\":\"\",\"text\":\"责任护士\"}},\"handleTime\":\"2022-08-01 22:03:31\",\"type\":{\"identifier\":\"Entry\",\"text\":\"录入\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"校验人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Verify\",\"text\":\"效验\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"执行人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Action\",\"text\":\"执行\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"拒签人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Refuse\",\"text\":\"拒绝\"}}],\"orderClass\":{\"identifier\":\"5\",\"text\":\"护理\"},\"orderDetailIdList\":[{\"iDNumber\":\"107785803\",\"iDType\":\"CISOrderDetailNo\"},{\"iDNumber\":\"107785803\",\"iDType\":\"HISOrderDetailNo\"}],\"orderStatus\":\"1\",\"orderType\":\"1\",\"placerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"priority\":\"\",\"quantityTiming\":{\"duration\":\"\",\"interval\":{\"repeatPattern\":{\"identifier\":\"1\",\"text\":\"一日一次\"}},\"quantity\":\"\",\"startDT\":1659362777000,\"totalExecutiveFrequency\":\"\",\"totalQuantity\":\"0.0\",\"units\":\"\"},\"scheduleExecuteDatetime\":1659362777000,\"serviceInfo\":{\"itemInfo\":{\"identifier\":\"9651841\"},\"specification\":\"0.0\"}},\"pharmacyDetail\":{\"chargeGroupList\":[{\"chargeList\":[{\"chargeInfo\":{\"chargeCode\":\"false\",\"price\":0,\"totalQuantity\":0},\"serviceInfo\":{\"itemInfo\":{},\"unit\":\"\"}}],\"insurance\":{}}],\"pharmacyOrder\":{\"pharmacy\":{\"coefficientList\":{\"type\":{\"identifier\":\"\",\"text\":\"\"},\"unit\":\"\",\"value\":\"\"},\"dosageForm\":{},\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"pap\":{\"classValue\":{},\"credentialNumber\":\"\",\"credentialType\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosis\":{\"identifier\":\"\",\"text\":\"\"}}}},\"treatmentRoute\":{\"administrationMethod\":{\"identifier\":\"0\",\"text\":\"\"}}}}]}],\"patientVisit\":{\"babyVisitNumber\":\"\",\"patientClass\":\"I\",\"patientLocation\":{\"bed\":\"106886\",\"department\":{\"identifier\":\"068\",\"text\":\"重症医学科\"},\"room\":\"101713\",\"ward\":{\"identifier\":\"196745\",\"text\":\"重症医学科护理站\"}},\"visitCount\":1,\"visitNumber\":\"15471270\"}},\"head\":{\"appId\":\"null\",\"appType\":\"\",\"callback\":\"\",\"contentEncoding\":\"\",\"contentType\":\"\",\"licId\":\"\",\"messageId\":\"D11D3EB6-AF29-49FC-8220-D37F2502846A\",\"orgId\":\"1001\",\"recAppId\":\"null\",\"securityContent\":\"\",\"securityPolicy\":\"\",\"timestamp\":\"20220801220820\",\"tranCode\":\"\",\"version\":\"\"}}}";
            String str="{\"request\":{\"body\":{\"demography\":{\"birthday\":\"1968-08-22 00:00:00\",\"maritalStatus\":{\"identifier\":\"1\",\"text\":\"未婚      \"},\"patientIdentifierList\":[{\"idNumber\":\"15471270\",\"idType\":\"PatientID\",\"idTypeScope\":\"\"},{\"idNumber\":\"1146539\",\"idType\":\"MedicalRecordNo\",\"idTypeScope\":\"\"},{\"idNumber\":\"1146539\",\"idType\":\"CardNo\",\"idTypeScope\":\"\"}],\"patientName\":\"王海港\",\"sex\":{\"identifier\":\"M\",\"text\":\"男性\"},\"ssn\":\"140427196808224411\"},\"diagnosisList\":[{\"diagnosisClass\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosisCode\":{\"identifier\":\"-\",\"text\":\"脑出血\"},\"diagnosisDoc\":{\"idNumber\":\"0821\",\"name\":\"李远征\"},\"diagnosisTime\":\"2022-08-01 22:08:21\",\"diagnosisType\":{\"identifier\":\"\",\"text\":\"\"},\"herbalistDiagnosisCode\":{\"identifier\":\"\",\"text\":\"\"}}],\"event\":{\"eventCode\":{\"identifier\":\"ORD0201\"},\"eventFacility\":{\"identifier\":\"\",\"text\":\"长治医学院附属和平医院\"},\"operator\":{\"department\":{\"identifier\":\"\"},\"iDNumber\":\"\",\"name\":\"ESB\"},\"recordDatetime\":1659362900000},\"orderGroupList\":[{\"commonOrder\":{\"orderControl\":\"\",\"orderIdList\":[{\"idNumber\":\"107785807\",\"idType\":\"CISOrderDetailNo\"}]},\"orderDetailGroupList\":[{\"orderDetail\":{\"commentList\":[{\"type\":{\"identifier\":\"Comment\",\"text\":\"备注\"}}],\"contentOfDoctorsAdvice\":\"脑出血疾病护理常规\",\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"fillerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"groupNumber\":\"107785807\",\"groupSeqNumber\":\"\",\"handleList\":[{\"handleBy\":{\"iDNumber\":\"697\",\"name\":\"李远征\",\"role\":{\"identifier\":\"\",\"text\":\"责任护士\"}},\"handleTime\":\"2022-08-01 22:03:43\",\"type\":{\"identifier\":\"Entry\",\"text\":\"录入\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"校验人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Verify\",\"text\":\"效验\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"执行人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Action\",\"text\":\"执行\"}},{\"handleBy\":{\"role\":{\"identifier\":\"\",\"text\":\"拒签人\"}},\"handleTime\":\"\",\"type\":{\"identifier\":\"Refuse\",\"text\":\"拒绝\"}}],\"orderClass\":{\"identifier\":\"5\",\"text\":\"护理\"},\"orderDetailIdList\":[{\"iDNumber\":\"107785807\",\"iDType\":\"CISOrderDetailNo\"},{\"iDNumber\":\"107785807\",\"iDType\":\"HISOrderDetailNo\"}],\"orderStatus\":\"1\",\"orderType\":\"1\",\"placerDepartment\":{\"identifier\":\"\",\"text\":\"\"},\"priority\":\"\",\"quantityTiming\":{\"duration\":\"\",\"interval\":{\"repeatPattern\":{\"identifier\":\"1\",\"text\":\"一日一次\"}},\"quantity\":\"\",\"startDT\":1659362777000,\"totalExecutiveFrequency\":\"\",\"totalQuantity\":\"0.0\",\"units\":\"\"},\"scheduleExecuteDatetime\":1659362777000,\"serviceInfo\":{\"itemInfo\":{\"identifier\":\"908794\"},\"specification\":\"0.0\"}},\"pharmacyDetail\":{\"chargeGroupList\":[{\"chargeList\":[{\"chargeInfo\":{\"chargeCode\":\"false\",\"price\":0,\"totalQuantity\":0},\"serviceInfo\":{\"itemInfo\":{},\"unit\":\"\"}}],\"insurance\":{}}],\"pharmacyOrder\":{\"pharmacy\":{\"coefficientList\":{\"type\":{\"identifier\":\"\",\"text\":\"\"},\"unit\":\"\",\"value\":\"\"},\"dosageForm\":{},\"extentionList\":[{\"codingSystem\":\"\",\"identifier\":\"\",\"nameOfCodingSystem\":\"\",\"text\":\"\"}],\"pap\":{\"classValue\":{},\"credentialNumber\":\"\",\"credentialType\":{\"identifier\":\"\",\"text\":\"\"},\"diagnosis\":{\"identifier\":\"\",\"text\":\"\"}}}},\"treatmentRoute\":{\"administrationMethod\":{\"identifier\":\"0\",\"text\":\"\"}}}}]}],\"patientVisit\":{\"babyVisitNumber\":\"\",\"patientClass\":\"I\",\"patientLocation\":{\"bed\":\"106886\",\"department\":{\"identifier\":\"068\",\"text\":\"重症医学科\"},\"room\":\"101713\",\"ward\":{\"identifier\":\"196745\",\"text\":\"重症医学科护理站\"}},\"visitCount\":1,\"visitNumber\":\"15471270\"}},\"head\":{\"appId\":\"null\",\"appType\":\"\",\"callback\":\"\",\"contentEncoding\":\"\",\"contentType\":\"\",\"licId\":\"\",\"messageId\":\"4B213F9D-3500-4145-9BA6-20A5865EDCD8\",\"orgId\":\"1001\",\"recAppId\":\"null\",\"securityContent\":\"\",\"securityPolicy\":\"\",\"timestamp\":\"20220801220820\",\"tranCode\":\"\",\"version\":\"\"}}}";
            Map mapTypes = JSON.parseObject(str);

            String s = JSON.toJSONString(mapTypes, new PascalNameFilter());
            System.out.println(s.toString());

        }

    }

